package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;


//@EnableConfigurationProperties
@SpringBootApplication
@MapperScan("com.example.demo.mapper")
//@EnableWebMvc
public class DemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context =SpringApplication.run(DemoApplication.class, args);
        // 返回IOC 容器
        String[] beans = context.getBeanDefinitionNames();
        for (String b : beans) {
//            System.out.println(b);
        }
    }
}
